//
//  UnLoginView.m
//  QA
//
//  Created by 李小龙 on 2017/5/24.
//  Copyright © 2017年 ZDQK. All rights reserved.
//

#import "UnLoginView.h"

@implementation UnLoginView
- (IBAction)loginButtonAction:(id)sender {
    self.block(0);
}
- (IBAction)registerButtonAction:(id)sender {
    self.block(1);
}

- (instancetype)init {
    self = [super init];
    if (self) {
        [self awakeFromNib];
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    self.view = [[[NSBundle mainBundle] loadNibNamed:@"UnLoginView" owner:self options:nil] lastObject];
    self.view.frame = self.bounds;
    [self addSubview:self.view];
    
    [self.loginButton setHalfCircleWithColor:[UIColor clearColor]];
    [self.registerButton setHalfCircleWithColor:[UIColor ThemeColor]];
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
